package com.weipai.springboot.model;

import com.weipai.springboot.module.util.DateUtils;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.UUID;

/**
 * 需求类别实体类
 */
@Table(name = "c_demand_category")
public class DemandCategory implements Serializable{

    @Id
    @Column(name="demand_category_id", length = 64)
    private String demandCategoryId= UUID.randomUUID().toString();//主键

    @Column(name = "demand_category_name", length = 20)
    private String demandCategoryName;//名称

    @Column(name = "demand_category_sort", length = 11)
    private Integer demandCategorySort=0;//排序

    @Column(name = "demand_category_status", length = 11)
    private Integer demandCategoryStatus=0;//状态值：启用--0，-1禁用

    @Column(name = "demand_category_del", length = 11)
    private Integer demandCategoryDel=0;//逻辑删除：0默认，-1删除

    @Column(name = "demand_category_describe")
    private String demandCategoryDescribe;//简介

    @Column(name = "create_time", length = 20)
    private String createTime= DateUtils.timeFormat(System.currentTimeMillis());//创建时间

    @Column(name = "del_time", length = 20)
    private String delTime;//删除时间   

    @Column(name = "update_time", length = 20)
    private String updateTime;//修改时间

    public String getDemandCategoryId() {
        return demandCategoryId;
    }

    public void setDemandCategoryId(String demandCategoryId) {
        this.demandCategoryId = demandCategoryId;
    }

    public String getDemandCategoryName() {
        return demandCategoryName;
    }

    public void setDemandCategoryName(String demandCategoryName) {
        this.demandCategoryName = demandCategoryName;
    }

    public Integer getDemandCategorySort() {
        return demandCategorySort;
    }

    public void setDemandCategorySort(Integer demandCategorySort) {
        this.demandCategorySort = demandCategorySort;
    }

    public Integer getDemandCategoryStatus() {
        return demandCategoryStatus;
    }

    public void setDemandCategoryStatus(Integer demandCategoryStatus) {
        this.demandCategoryStatus = demandCategoryStatus;
    }

    public Integer getDemandCategoryDel() {
        return demandCategoryDel;
    }

    public void setDemandCategoryDel(Integer demandCategoryDel) {
        this.demandCategoryDel = demandCategoryDel;
    }

    public String getDemandCategoryDescribe() {
        return demandCategoryDescribe;
    }

    public void setDemandCategoryDescribe(String demandCategoryDescribe) {
        this.demandCategoryDescribe = demandCategoryDescribe;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime == null ? null : createTime.trim();
    }

    public String getDelTime() {
        return delTime;
    }

    public void setDelTime(String delTime) {
        this.delTime = delTime == null ? null : delTime.trim();
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime == null ? null : updateTime.trim();
    }
}